#!/usr/bin/env python
#-*-coding:utf8-*-
def mtg(the_list):
    for item in the_list:
        Max=item
        for x in range(len(the_list)):
            if the_list[x] >= Max:
                Max=the_list[x]
            else:
                pass
    return Max

the_list=[1,44,2,333,434,9,345,3,4]

MM=[]
SS=[]

for j in range(len(the_list)):
    m=mtg(the_list)
    the_list.remove(m)
    MM.append(m)
    print (m)
print (MM)
SS=MM.reverse()
print (SS)
    
